﻿@model CarsRegistrationService.Models.ViewModel.RequestProcessViewModel

@{
    ViewBag.Title = "Обработка заявки";
}

<script src="@Url.Content("~/Content/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Content/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>Заявка</legend>
        @Html.HiddenFor(model=>model.Request.ID)
        <ul id="RequestImages">
            @foreach (var img in Model.Request.Images)
            {
                <li>
                    <img src="@Url.Content(string.Format("{0}{1}", "~/Mobile/RequestData/", img))" alt=""/>
                </li>
            }
            
        </ul>
        <p>
            <input type="submit" value="Сохранить" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("К списку заявок", "RequestsPage")
</div>

